﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Td.Additional.ComponentModel
{
    /// <summary>
    /// Boolean values attribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public sealed class BooleanValuesAttribute : Attribute
    {
        #region Properties

        private String _TrueValue;
        /// <summary>
        /// Gets or sets the true value.
        /// </summary>
        /// <value>The true value.</value>
        public String TrueValue
        {
            get { return _TrueValue; }
            set { _TrueValue = value; }
        }

        private String _FalseValue;
        /// <summary>
        /// Gets or sets the false value.
        /// </summary>
        /// <value>The false value.</value>
        public String FalseValue
        {
            get { return _FalseValue; }
            set { _FalseValue = value; }
        }

        #endregion

        #region Constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="BooleanValuesAttribute"/> class.
        /// </summary>
        /// <param name="trueValue">The true value.</param>
        /// <param name="falseValue">The false value.</param>
        public BooleanValuesAttribute(String trueValue, String falseValue)
        {
            _TrueValue = trueValue;
            _FalseValue = falseValue;
        }

        #endregion

    }
}